package com.bdqn.S64.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.S64.dao.UserDao;
import com.bdqn.S64.pojo.TSysUser;
import com.bdqn.S64.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl extends ServiceImpl<UserDao, TSysUser> implements UserService{

    @Resource
    private UserDao userDao;

    @Override
    public TSysUser login(String userName) {
        QueryWrapper queryWrapper=new QueryWrapper();   //构建查询条件
        queryWrapper.eq("realName",userName);
        return userDao.selectOne(queryWrapper);
    }
}
